package com.kjj.gift.clients;

import com.kjj.gift.domain.LoginUser;
import com.kjj.gift.dto.LoginUserMealDto;
import com.kjj.gift.util.AjaxResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

@FeignClient(value = "GIFT-AUTH",fallbackFactory = LoginUserClientFallbackFactory.class)
public interface LoginUserClient {

    @PostMapping("/loginUser/meal")
    AjaxResult addLoginUserMeal(LoginUserMealDto loginUserMealDto);
    @PostMapping("/loginUser/saveUser")
    AjaxResult saveUser(LoginUser loginUser);
    @GetMapping("/oauth/test/{id}")
    AjaxResult oauthTest(@PathVariable("id")Long id);

}
